package com.etc.service.impl;

import com.etc.dao.ProductCategoryMapper;
import com.etc.entity.ProductCategory;
import com.etc.service.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品分类管理实现类
 */
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
    @Autowired
    private ProductCategoryMapper productCategoryMapper;

    /**
     * 查询全部商品分类
     * @return  List<ProductCategory>商品分类列表
     */
    @Override
    public List<ProductCategory> findAllProductCategory() {
        List<ProductCategory> list = productCategoryMapper.selectAllProductCategory();
        return list;
    }
}
